<?php

namespace App\Http\Resources;

use Illuminate\Http\Resources\Json\JsonResource;

class MediationRecordResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request $request
     * @return array
     */
    public function toArray($request)
    {
        return [
            'id'=>(integer)$this->id,
            'users_id' => (integer)$this->users_id,
            'case_id' => (integer)$this->case_id,
            'time' => $this->time,
            'parties' => (string)$this->parties,
            'location' => (string)$this->location,
            'process' => (string)$this->process,
            'result' => (string)$this->result
        ];
    }
}
